package com.jason.kotlin.meta.architecture2.api

import com.jason.kotlin.meta.architecture2.model.ArticleBean
import com.jason.kotlin.meta.architecture2.model.ClassifyBean
import com.jason.kotlin.meta.architecture2.model.WanApiPageResponse
import com.jason.kotlin.meta.architecture2.model.WanApiResponse
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

interface ProjectService {


    @GET("/project/tree/json")
    suspend fun getProjectClassify(): WanApiResponse<List<ClassifyBean>>

    @GET("https://www.wanandroid.com/project/list/{page}/json")
    suspend fun getProjectList(
        @Path("page") page: Int,
        @Query("cid") cid: Int
    ): WanApiResponse<WanApiPageResponse<ArticleBean>>
}